<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><?=Html::chars($title)?></title>
	<link href="/styles/style.css" rel="stylesheet" type="text/css" />
	<link href="/styles/autoform.css" rel="stylesheet" type="text/css" />
	<link href="/styles/admin.css" rel="stylesheet" type="text/css" />
	<?php
		if (isset($link)) foreach ($link as $i) {
			echo '<link' . Html::attributes($i) . ' />'."\n";
		}
	?>
	<script type="text/javascript">//<![CDATA[
		var CONFIRMATION_REMOVE = "Do you want to remove this item?";
	//]]></script>
	<?if (isset($scripts)) foreach ($scripts as $script) :?>
		<script type="text/javascript" src="<?=Url::site($script)?>"></script>
	<?endforeach?>
</head>
<body>
<table class="container">
	<tr>
		<td class="w100 paddingBottom10 paddingTop10">
			<table class="w100">
				<tr>
					<td class="w50">
						<?=Html::anchor('/admin/', 'Dashboard') . (isset($page)? ' — ' . $page : '')?>
						 | <?=Html::anchor('/', 'Website homepage');?>
					</td>
					<td class="w50 right">
						<span id="ajax-message"></span>
						<?=ucfirst($identity['name'])?>
						 | <?=Html::anchor('/admin/settings/', 'Website settings') . (isset($page)? ' — ' . $page : '')?>
						 | <?=Html::anchor('/auth/signout/', 'Sign Out')?>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td class="w100 paddingBottom10 paddingTop10">
			<?=$content?>
		</td>
	</tr>
	<tr>
		<td class="w100 small">
			Processed in {execution_time} seconds, using {memory_usage} of memory,<br />
			executed {database_queries} database queries and included {included_files} files.
		</td>
	</tr>
</table>
</body></html>